<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript">   

	function callback(msg)   
	
	{   
	
	   console.log(msg);
	
	}   
	function uploadfile(){
		document.getElementById("form1").submit();
	}
</script> 
		
	</head>
	<body>
		
		
		
		<form action="server/php.php" id="form1" name="form1" encType="multipart/form-data"  method="post"       target="hidden_frame" >   

    <input type="file" id="file" name="file" style="width:450" onchange="javascript:uploadfile();">   

    <INPUT type="submit" value="上传文件"><span id="msg"></span>   

    <br>   

    <font color="red">支持JPG,JPEG,GIF,BMP,SWF,RMVB,RM,AVI文件的上传</font>                 

    <iframe name='hidden_frame' id="hidden_frame" style='display:none'></iframe>   

</form> 



	</body>
</html>
